package hash;

/**
 * @author yuisama
 * @date 2022/01/15 12:17
 **/
class Student {
    private String name;
    private int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
}

public class Test {
    public static void main(String[] args) {
        // 默认是16
//        HashMapByLink hashMapByLink = new HashMapByLink(4);
//        hashMapByLink.put(0,4);
//        hashMapByLink.put(1,9);
//        hashMapByLink.put(5,10);
//        hashMapByLink.put(3,20);
//        System.out.println();
        // n = 2 ^ 5
        int n = 32;
        int hash = 100003;
        System.out.println((n - 1) & hash);
        System.out.println(hash % n);
    }
}